import type { VNode } from 'vue'
import type { TooltipProps } from '../Tooltip/type'
export interface DropdownProps extends TooltipProps {
    menuOptions: MenuOptions [],
      //是否点击之后关闭
      closeOnClick?:boolean
}
export interface MenuOptions {
    lable:string | VNode
    key:string | number
    disabled?:boolean
    divided?:boolean
  
}

export interface DropdownEmits {
    (e:'visible-change',value:boolean):void
    (e:'select',value:MenuOptions):void
}

export interface DropdownInstance {
    show:()=>void 
    hide:()=>void 
}